<extend name="Public:form_index_layout"/>


<block name="index_search">
      
			  <span <php>echo display(CONTROLLER_NAME.'/add');</php> style="float:right;margin-right:20px;"><a href="__URL__/add/navTabId/{:CONTROLLER_NAME}" class="btn btn-green" data-toggle="dialog" data-width="600" data-height="300" data-id="dialog-mask" data-mask="true" data-icon="plus">新增</a></span>
			  <span><a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);" data-icon="undo">刷新</a></span>
	
</block>

	<block name="index_content">
     <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
        <thead>
            <tr>
            <th width="30" height="30"></th>
                <th>编号</th>
				<th>权限名称</th>
				<th>排序</th>
				<th>状态</th>
				<th>操作</th> 
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="v">
    	<tr>
        <td height=25></td>
        <Td>{$v.id}</td>
        <Td>{$v.name}</td>
	    <td>{$v.sort}</td>
        <td><a href="__URL__/changeStatus/id/{$v['id']}/navTabId/{:CONTROLLER_NAME}" data-toggle="doajax" data-confirm-msg="确定要操作吗？"><if condition="$v.status EQ 1 "><img src="__PUBLIC__/images/ok.gif" border="0"/><else/><img src="__PUBLIC__/images/locked.gif" border="0"/></if></a></td>
		<td <php>echo display(CONTROLLER_NAME.'/edit');</php> > 
		<a href="__URL__/edit/id/{$v.id}/navTabId/{:CONTROLLER_NAME}"  class="btn btn-green btn-sm" data-toggle="dialog" data-width="600" data-height="300" data-id="dialog-mask" data-mask="true" >编辑</a>
		<php>echo display(CONTROLLER_NAME.'/del');</php>  <a href="__URL__/del/id/{$v.id}/navTabId/{:CONTROLLER_NAME}"   class="btn btn-green btn-sm" data-toggle="doajax"  data-width="600" data-height="300" data-id="dialog-mask" data-mask="true" data-confirm-msg="确定要删除吗？">删除</a>
		</td>
        </tr>
        </foreach>
        </tbody>
    </table>
</block>
<!-- 撒大大 -->
